using Rsd.Dudu;
using Rsd.Dudu.ModelProvider;
using Rsd.Dudu.ORM;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Rsd.Faith.Models
{
    /// <summary>
    /// 
    /// </summary>
    [Table("sys_enum_values", "sys_enum_values", "id")]
    [Serializable]
    public class SysConfigItemModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 编码
        /// </summary>
        [StringType("bian_ma", "编码", 20, 20)]
        [DisplayName("编码")]
        public string BianMa { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [StringType("miao_shu", "描述", 22, 20)]
        [DisplayName("描述")]
        public string MiaoShu { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        [StringType("zhi", "值", 24, 20)]
        [DisplayName("值")]
        public string Zhi { get; set; }

        /// <summary>
        /// enumID
        /// </summary>
        [StringType("enumid", "配置ID", 26, 40)]
        [DisplayName("配置ID")]
        public string ConfigId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public SysConfigItemModel( )
        { }

        /// <summary>
        /// 
        /// </summary>
        public SysConfigItemModel(Dudu.BizModel.ObjectStateType stateType ) 
            :this()
        {
            this.SetState(stateType);
        }
    }
}
